package com.ygh.service;

import com.ygh.error.BusinessException;
import com.ygh.service.model.UserModel;

public interface  UserService {
    // 通过用户Id获取用户对象的方法
    UserModel getUserById(Integer id);
    void register(UserModel userModel) throws BusinessException;

    /*
    * telphone:用户注册手机
    * encrtPassword:用户加密后的密码
    * */
    UserModel validataLogin(String telphone,String encrtPassword) throws BusinessException;
}
